home *** CD-ROM | disk | FTP | other *** search
- 75
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Sleep
- --- RECORDSEPARATOR ---
- Platform:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Windows
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Description:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baSleep pauses the calling Director/Authorware program.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Usage:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baSleep( milliSecs )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Arguments:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Integer.
- --- RECORDSEPARATOR ---
- milliSecs is the time to sleep for, in thousandths of a second.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Returns:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Void.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Examples:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Director:
- --- RECORDSEPARATOR ---
- baSleep( 200 )
- --- RECORDSEPARATOR ---
- Authorware:
- --- RECORDSEPARATOR ---
- baSleep( 200 )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Notes:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- This function is most useful for 'lowering' the priority of Director to allow other
- --- RECORDSEPARATOR ---
- programs a larger slice of available processing time - for example when playing a
- --- RECORDSEPARATOR ---
- mpeg movie. Calling this function in a loop such as in a on exitFrame handler, will
- --- RECORDSEPARATOR ---
- give other processes a chance to run while still allowing Director to process events
- --- RECORDSEPARATOR ---
- such as mouse clicks. Larger numbers will give other programs more time, but slow
- --- RECORDSEPARATOR ---
- down Director responses. Values between 50 and 200 would be a good starting
- --- RECORDSEPARATOR ---
- point for experimentation.
- --- RECORDSEPARATOR ---
- This function is available in 16 bit, but its effectiveness is limited because 16 bit
- --- RECORDSEPARATOR ---
- Windows has limited multitasking abilities.